<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<style>
		*{
			padding: 0;
			margin: 0;
		}
		ul{
			list-style: none;
		}
		li{
			margin-left: 50px;
		}
	</style>
	<body>
		<section id="news" >
			<header>京东快报<a href="#">更多></a></header>
			<ul>
				<li><a href="#">志玲姐：墨镜300减30</a></li>
				<li><a href="#">京东无锡馆正式启动</a></li>
				<li><a href="#">99元抢平板！品牌配件199-100</a></li>
				<li><a href="#">节能抢跑京东先行</a></li>
				<li><a href="#">高洁丝实力撩货，领劵5折</a></li>
			</ul>
		</section>
	
		<script>
				var obj1=document.getElementById("news");
				alert(obj1.childNodes.length);
				var str=obj1.lastElementChild.firstElementChild.nextElementSibling.nextElementSibling.innerHTML;
				alert(str);
		</script>
	</body>
</html>
